
function parseToJson(jsonStr){
	return (new Function("return "+jsonStr))();
}
function getFields(id){
	var fields = new Array();
		$('#'+id+" td").each(function(index){
	        var o = $(this).attr('field');
	        if(o!=undefined){
	        	fields.push(o);
	        }
	    });
	return fields;
}
	
	
function getWidths(id){
	var fields = new Array();
		$('#'+id+" td").each(function(index){
	        var o = $(this).attr('width');
	        if(o!=undefined){
	        	fields.push(o);
	        }
	    });
	return fields;
}